import request from '@/utils/request'

// 查询科研经费列表
export function listResearch1(query) {
  return request({
    url: '/funding/research/list',
    method: 'get',
    params: query
  })
}

// 查询科研经费详细
export function getResearch(fundingId) {
  return request({
    url: '/funding/research/' + fundingId,
    method: 'get'
  })
}

// 新增科研经费
export function addResearch(data) {
  return request({
    url: '/funding/research',
    method: 'post',
    data: data
  })
}

// 修改科研经费
export function updateResearch(data) {
  return request({
    url: '/funding/research',
    method: 'put',
    data: data
  })
}

// 删除科研经费
export function delResearch(fundingId) {
  return request({
    url: '/funding/research/' + fundingId,
    method: 'delete'
  })
}



